package com.xinzhidi.web.netty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 协议指令 agreement_command
 *
 * @author cx
 * @date 2023-06-13
 */
@ApiModel(value = "协议指令对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("agreement_command")
public class AgreementCommand {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "协议类型 1：户用阀门协议 2：单元阀门协议 3：室温采集器协议 4：户用热量表协议 5：单元热量表协议")
    private String protocolType;

    @ApiModelProperty(value = "类型（1：发送  2:接收）")
    private String type;

    @ApiModelProperty(value = "协议名称")
    private String protocolName;

    @ApiModelProperty(value = "指令类型")
    private String instructType;

    @ApiModelProperty(value = "指令名称")
    private String instructName;

    @ApiModelProperty(value = "前缀")
    private String prefix;

    @ApiModelProperty(value = "起始符")
    private String startChar;

    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    @ApiModelProperty(value = "控制码")
    private String controlCode;

    @ApiModelProperty(value = "长度域")
    private String lengthField;

    @ApiModelProperty(value = "数据域（命令号）")
    private String dataFieldInstruct;

    @ApiModelProperty(value = "数据域（标识）")
    private String dataMark;

    @ApiModelProperty(value = "结束符")
    private String endMark;

    @ApiModelProperty(value = "数据域（数据）实体类")
    private String entityClass;

}
